﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace demo.Common
{
    public class WebHelper
    {
        public static bool IsAjax()
        {
            return (HttpContext.Current.Request.Headers["X-Requested-With"] == "XMLHttpRequest");
        }
    }
}
